<?php 
	echo $this->Form->create('User', array('id'	=> 'submit_form' , 'class'	=> 'form-horizontal', 'novalidate'	=> 'novalidate')); 
	echo '<input type="hidden" name="data[User][id]" value="0" />';
?>
	<div class="tab-pane active" id="tab1">
												<h3 class="block">Provide your account details</h3>
												<div class="form-group">
													<label class="control-label col-md-3">Username
													<span class="required">
														 *
													</span>
													</label>
													<div class="col-md-4">
														<?php echo $this->Form->input('username', 
														array(	'label'	=> false, 
																'div'	=> false, 
																'class'	=> 'form-control',
																'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
														)); ?>
														
														
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-3">First Name
													</label>
													<div class="col-md-4">
														<?php echo $this->Form->input('firstname', 
														array(	'label'	=> false, 
																'div'	=> false, 
																'class'	=> 'form-control',
																'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
														)); ?>
														
														
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-3">Last Name
													</label>
													<div class="col-md-4">
														<?php echo $this->Form->input('lastname', 
														array(	'label'	=> false, 
																'div'	=> false, 
																'class'	=> 'form-control',
																'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
														)); ?>
														
														
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-3">Password
													<span class="required">
														 *
													</span>
													</label>
													<div class="col-md-4">
														<?php echo $this->Form->input('password', 
															array(	'id'	=> 'submit_form_password', 
																	'label'	=> false, 
																	'div'	=> false, 
																	'class'	=> 'form-control',
																	'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block')),
																)); ?>
														
														
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-3">Confirm Password
													<span class="required">
														 *
													</span>
													</label>
													<div class="col-md-4">
														<?php echo $this->Form->input('repass', 
															array(	'id'	=> '', 
																	'label'	=> false, 
																	'div'	=> false, 
																	'class'	=> 'form-control',
																	'type'	=> 'password',
																	'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block')),
																)); ?>
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-3">Email
													<span class="required">
														 *
													</span>
													</label>
													<div class="col-md-4">
														<?php echo $this->Form->input('email', 
														array(	'label'	=> false, 
																'div'	=> false, 
																'class'	=> 'form-control',
																'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
															 )); ?>
														
													</div>
												</div>
												<div class="form-group">
													<label class="control-label col-md-3">Role<span class="required">*</span></label>
													<div class="col-md-4">
														<?php 
															echo $this->Form->input('role', array(
																'options'	=>	array(
																	'admin' => 'Admin', 
																	'author' => 'Author'
																	),
																'empty'		=> '(Choose one)',
																'div'		=> false,
																'label'		=> false,
																'class'		=> 'form-control',
																'error' 	=> array('attributes' => array('wrap' => 'span','class' => 'help-block'))
															));
														?>
													</div>
												</div>
												
												<div class="form-group">
													<label class="control-label col-md-3">Active<span class="required">*</span></label>
													<div class="col-md-4">
														<?php 
															echo $this->Form->input('active', array(
																'div'		=> false,
																'label'		=> false,
																'class'		=> 'form-control',
																'error' 	=> array('attributes' => array('wrap' => 'span','class' => 'help-block'))
															));
														?>
													</div>
												</div>
											</div>
<div class="form-actions fluid">
									<div class="col-md-offset-3 col-md-9">
										<button class="btn green" type="submit">Submit</button>
										<?php 
											echo $this->Html->link('Cancel', array(
												 'controller'	=> 'users',
												 'action'		=> 'admin_index'
											),
											array('class'	=> 'btn default')
											);
										?>
									</div>
								</div>											
</form>								